# Maintainer: Simon Rupf <simon@rupf.net>
pkgname=dar
pkgver=2.7.15
pkgrel=0
pkgdesc="Disk ARchive"
url="http://dar.linux.free.fr/"
arch="all"
license="GPL-2.0-or-later"
options="!check" # the provided "make check" requires root permissions
makedepends="argon2-dev bzip2-dev curl-dev e2fsprogs-dev gettext-dev gpgme-dev
	libgcrypt-dev librsync-dev libthreadar-dev lz4-dev lzo-dev xz-dev zlib-dev
	zstd-dev"
subpackages="$pkgname-doc $pkgname-lang $pkgname-libs $pkgname-dev"
source="https://downloads.sourceforge.net/dar/dar-$pkgver.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-dar-static \
		--disable-static \
		--disable-upx \
		--disable-dependency-tracking
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c35c47c5ef307e3a36394cff44b37de0b9e7ad95d2810de476197897d368fa20401d567b18b763d39663167ec2ca093e54535fb5741c99a8e4bf9b78a460eaba  dar-2.7.15.tar.gz
"
